package com.ruoyi.project.travel.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.MbEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 景区 对象 tr_scenic
 *
 * @author HYD
 * @date 2020-06-14
 */
@Data
@TableName("tr_scenic")
@ApiModel(value="tr_scenic对象", description="景区 ")
public class Scenic extends MbEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    @Excel(name = "名称")
    @TableField("name")
    @ApiModelProperty(value = "名称")
    private String name;

    @Excel(name = "描述")
    @TableField("description")
    @ApiModelProperty(value = "描述")
    private String description;

    @Excel(name = "景区电话")
    @TableField("mobile")
    @ApiModelProperty(value = "景区电话")
    private String mobile;

    @Excel(name = "地址")
    @TableField("address")
    @ApiModelProperty(value = "地址")
    private String address;

    @Excel(name = "经度")
    @TableField("log")
    @ApiModelProperty(value = "经度")
    private Double log;

    @Excel(name = "纬度")
    @TableField("lat")
    @ApiModelProperty(value = "纬度")
    private Double lat;

    @Excel(name = "门票价格")
    @TableField("price")
    @ApiModelProperty(value = "门票价格")
    private BigDecimal price;

    @Excel(name = "主图")
    @TableField("images")
    @ApiModelProperty(value = "主图")
    private String images;

    @Excel(name = "其他图片 以逗号隔开")
    @TableField("other_img")
    @ApiModelProperty(value = "其他图片 以逗号隔开")
    private String otherImg;

    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //格式化前台日期入参注解
    @TableField("start_time")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //格式化前台日期入参注解
    @TableField("finish_time")
    @ApiModelProperty(value = "结束时间")
    private Date finishTime;

    @Excel(name = "标签")
    @TableField("tag")
    @ApiModelProperty(value = "标签")
    private String tag;

    @Excel(name = "类型")
    @TableField("type")
    @ApiModelProperty(value = "类型")
    private Long type;

    @Excel(name = "状态 ")
    @TableField("status")
    @ApiModelProperty(value = "状态 ")
    private Long status;

    @Excel(name = "操作人编号")
    @TableField("operator_id")
    @ApiModelProperty(value = "操作人编号")
    private Long operatorId;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getLog() {
        return log;
    }

    public void setLog(Double log) {
        this.log = log;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getOtherImg() {
        return otherImg;
    }

    public void setOtherImg(String otherImg) {
        this.otherImg = otherImg;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Scenic{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", mobile='" + mobile + '\'' +
                ", address='" + address + '\'' +
                ", log=" + log +
                ", lat=" + lat +
                ", price=" + price +
                ", images='" + images + '\'' +
                ", otherImg='" + otherImg + '\'' +
                ", startTime=" + startTime +
                ", finishTime=" + finishTime +
                ", tag='" + tag + '\'' +
                ", type=" + type +
                ", status=" + status +
                ", operatorId=" + operatorId +
                ", createTime=" + createTime +
                '}';
    }
}
